package day3;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Test1 {
    public static void main(String[] args)throws Exception {
        Date d = new Date();
        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        String s1 = f.format(d);

        s1 = "2020-12-23 23:23:15";
        Date newDate = f.parse(s1);

        System.out.println(d.getTime());
        d.setTime(11111000001L);
        System.out.println(d);

        Calendar c = Calendar.getInstance();
        System.out.println(c.get(Calendar.MONTH)+1);


    }
}
